﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using umbraco;
using umbraco.BasePages;
using umbraco.BusinessLogic;
using umbraco.interfaces;
using umbraco.controls;
using Commerce.Common;

namespace CommerceForUmbraco.adminSection.commerce
{
    public partial class dashboardCoupon : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.pane_coupon.Text = "Coupon Overview";


            // get collection values
            Commerce.Common.CouponCollection coupons = null;
            coupons = new  CouponCollection().Load();

            gvCoupon.DataSource = coupons;
            gvCoupon.DataBind();
        }
    }
}